home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / picture / frame.h < prev    next >
Text File  |  1993-09-23  |  612b  |  32 lines

  1. //    Copyright 1993 Ralph Gonzalez
  2.  
  3. /*
  4. *    FILE:        frame.h
  5. *    AUTHOR:        R. Gonzalez
  6. *    CREATED:    October 3, 1990
  7. *
  8. *    Defines window frame (center, width, and height) for picture
  9. *    application.  Useful for 2D mapping.
  10. */
  11.  
  12. # ifndef    frame_h
  13. # define    frame_h
  14.  
  15. # include    "class.h"
  16.  
  17. /******************************************************************
  18. *   general-purpose frame
  19. ******************************************************************/
  20. class    Frame:public Generic_Class
  21. {
  22. public:
  23.     double            x;    
  24.     double            y;    
  25.     double            width;
  26.     double            height;
  27.         
  28.     Frame(void);
  29.     virtual void    set(double,double,double,double);
  30. };
  31.  
  32. # endif